.class Lcom/netease/newsreader/activity/SelectCity$8;
.super Ljava/lang/Object;
.source "SelectCity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/SelectCity;->findViewsById()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/SelectCity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/SelectCity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/SelectCity$8;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    .line 292
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6
    .parameter
    .parameter "arg1"
    .parameter "arg2"
    .parameter "arg3"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 296
    .local p1, arg0:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    iget-object v2, p0, Lcom/netease/newsreader/activity/SelectCity$8;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/SelectCity;->access$8(Lcom/netease/newsreader/activity/SelectCity;)Landroid/widget/ListView;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/ListView;->getHeaderViewsCount()I

    move-result v2

    sub-int/2addr p3, v2

    .line 297
    iget-object v2, p0, Lcom/netease/newsreader/activity/SelectCity$8;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/SelectCity;->access$2(Lcom/netease/newsreader/activity/SelectCity;)Lcom/netease/newsreader/adapter/CityGroupAdapter;

    move-result-object v2

    invoke-virtual {v2, p3}, Lcom/netease/newsreader/adapter/CityGroupAdapter;->getRealPosition(I)Lcom/netease/newsreader/util/GroupAdapter$ItemPosition;

    move-result-object v1

    .line 298
    .local v1, position:Lcom/netease/newsreader/util/GroupAdapter$ItemPosition;,"Lcom/netease/newsreader/util/GroupAdapter$ItemPosition;"
    iget-object v2, p0, Lcom/netease/newsreader/activity/SelectCity$8;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/SelectCity;->access$2(Lcom/netease/newsreader/activity/SelectCity;)Lcom/netease/newsreader/adapter/CityGroupAdapter;

    move-result-object v2

    iget v3, v1, Lcom/netease/newsreader/util/GroupAdapter$ItemPosition;->group:I

    iget v4, v1, Lcom/netease/newsreader/util/GroupAdapter$ItemPosition;->pos:I

    invoke-virtual {v2, v3, v4}, Lcom/netease/newsreader/adapter/CityGroupAdapter;->getChild(II)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;

    .line 299
    .local v0, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    iget v2, v1, Lcom/netease/newsreader/util/GroupAdapter$ItemPosition;->group:I

    if-nez v2, :cond_1

    .line 300
    sget-object v2, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    const-string v3, "ipquery"

    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/Boolean;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 312
    :goto_0
    return-void

    .line 302
    :cond_0
    sget-object v2, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    const-string v3, "ipquery_fail"

    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/Boolean;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 303
    iget-object v2, p0, Lcom/netease/newsreader/activity/SelectCity$8;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    invoke-static {v2}, Lcom/netease/newsreader/activity/SelectCity;->access$14(Lcom/netease/newsreader/activity/SelectCity;)V

    goto :goto_0

    .line 308
    :cond_1
    iget-object v5, p0, Lcom/netease/newsreader/activity/SelectCity$8;->this$0:Lcom/netease/newsreader/activity/SelectCity;

    const-string v2, "province"

    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 309
    const-string v3, "city"

    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 310
    const-string v4, "select_count"

    invoke-interface {v0, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    .line 309
    invoke-static {v4}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    .line 308
    invoke-static {v5, v2, v3, v4}, Lcom/netease/newsreader/activity/SelectCity;->access$11(Lcom/netease/newsreader/activity/SelectCity;Ljava/lang/String;Ljava/lang/String;I)V

    goto :goto_0
.end method
